package com.joven.internet.client;

import com.joven.core.constant.ResultInfo;
import com.joven.core.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * feign 远程调用interface1中的服务
 * @author joven_wong
 * 2021/10/18 16:30
 */
@FeignClient(value="alibaba-provider")
public interface JovenServiceClient {

    @GetMapping("/joven/getOne")
    ResultInfo<User> getUser(@RequestParam("id") Long id);
}
